const request = require('@/utils/request.js')

/**
 * 登录接口
 */
export const useLoginApi = (data) => {
  return request.post('/api/auth/login', data)
}

/**
 * 退出接口
 */
export const useLogoutApi = () => {
  return request.post('/api/auth/logout')
}

export const getOpenid = (query) => {
  return request.get('/api/auth/getOpenid', query)
}

export const getPhone = (query) => {
  return request.get('/api/auth/getPhone', query)
}